import { getSession } from "@/utils/session";
import mutations from "@/store/mutations";

export default {
  state: () => {
    return {
      menu: getSession("menu") || [],
      menufold: getSession("menufold") || false
    };
  },
  getters: {},
  mutations: {
    [mutations.SET_MENUFOLD](state, v) {
      state.menufold = v;
    },
    [mutations.SET_MENU](state, v) {
      state.menu = v;
    }
  },
  actions: {}
};
